package com.shop.pojo;

import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Document(collection = "cart")
public class Cart implements Serializable {

    private String goodsId;     //商品ID
    private String goodsName;   //商品名称
    private String attrValsId;     //商品属性ID
    private String attrVals;       //商品属性值
    private Double goodsPrice;      //商品价格
    private String goodsImg;        //商品图片
    private Integer goodsNum;     //商品数量

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getAttrValsId() {
        return attrValsId;
    }

    public void setAttrValsId(String attrValsId) {
        this.attrValsId = attrValsId;
    }

    public String getAttrVals() {
        return attrVals;
    }

    public void setAttrVals(String attrVals) {
        this.attrVals = attrVals;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }
}
